package com.example.hello.dto;

import jakarta.validation.constraints.*;
import lombok.Data;
import java.time.LocalDate;

@Data
public class WorkExperienceDTO {
    @NotBlank(message = "公司名称不能为空")
    @Size(max = 50, message = "公司名称不能超过50个字符")
    private String companyName;

    @NotBlank(message = "职位名称不能为空")
    @Size(max = 20, message = "职位名称不能超过20个字符")
    private String position;

    @NotNull(message = "开始时间不能为空")
    private LocalDate startDate;

    private LocalDate endDate;

    @Size(max = 200, message = "工作描述不能超过200个字符")
    private String description;
} 